Repository navigation
id-worlds: signed program bundle format with export, verify and fork - #11498
Merged
Merged
Conversation
…8280) A single-file bundle carries the payload, a manifest stating the D1 identity, the F12.7 ABI descriptor and fork lineage, plus two author signatures: one over the exact manifest bytes and the payload, and the F12.17 world-module signature so the bundle installs into a trust-listed world. decode() verifies offline and names the failing check. fork() appends the parent's identity to the lineage, so attribution cannot be dropped without breaking the signature. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dezren39
marked this pull request as ready for review
November 18, 2026 05:47
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: there was no way to carry a program as a file. A world module could be uploaded with an F12.17 signature, but nothing stated who wrote it, its name and version, which ABI it targets, or what it was forked from.
After:
id_worlds::program_bundledefines the single-file bundle from design D1-D3 and can export, verify and fork one, fully offline. A tampered payload, manifest, lineage, author or signature is refused with the failing check named (framing,manifest,abi,lineage,payload,content_hash,bundle_signature,module_signature).How: the file is a magic line, a length-prefixed manifest JSON, a length-prefixed seal JSON, then the payload. The manifest holds author key, name, version, content hash (the same BLAKE3 hex a world install uses), the
plazav1 ABI descriptor, ordered lineage and an optional licence. The seal holds two author signatures: one over a domain prefix plus the BLAKE3 of the exact manifest bytes and of the payload, and the existing world-module signature over the payload, soProgramBundle::module_signature()installs into a trust-listed world unchanged.fork()appends the parent's identity to the parent's lineage. Both JSON segments refuse repeated keys (#8794) and unknown fields.world_session::module_signing_messageis factored out so both paths sign the same bytes.Not in this PR: sideload import into a world (verification at import, ABI fit against the host, install record), which is #8280's second slice, and #8540's import round-trip, which needs that slice.
Testing:
cargo test -p id-worlds --lib -- program_bundle trust signature(17 pass, 14 new): round-trip, byte-identical re-encode, trust-list install check, tampered payload, tampered and re-serialised manifest, swapped author, foreign module signature, framing faults, repeated and unknown keys, unhosted ABI, bad specs, fork-of-a-fork chain, dropped lineage, self-referencing lineage.Refs #8280
Refs #8540
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.